from rest_framework.routers import SimpleRouter
from .views import CourseCategoryView, CourseView,SearchCourse

router = SimpleRouter()
router.register('category', CourseCategoryView, 'category')
router.register('actual', CourseView, 'actual')
router.register('search', SearchCourse, 'search')  # 搜索课程


urlpatterns = [
]
urlpatterns += router.urls
